package com.ruoyi.system.Fdongbei.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.Fdongbei.domain.TbRfidDes;
import com.ruoyi.system.Fdongbei.mapper.dibang.TbRfidDesMapper;
import com.ruoyi.system.Fdongbei.service.ITbRfidDesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 非过磅车辆RFIDService业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-08
 */
@Service
@DataSource(value = DataSourceType.LY002_L)
public class TbRfidDesServiceImpl implements ITbRfidDesService
{
    @Autowired
    private TbRfidDesMapper tbRfidDesMapper;

    /**
     * 查询非过磅车辆RFID
     * 
     * @param id 非过磅车辆RFID主键
     * @return 非过磅车辆RFID
     */
    @Override
    public TbRfidDes selectTbRfidDesById(Long id)
    {
        return tbRfidDesMapper.selectTbRfidDesById(id);
    }

    /**
     * 查询非过磅车辆RFID列表
     * 
     * @param tbRfidDes 非过磅车辆RFID
     * @return 非过磅车辆RFID
     */
    @Override
    public List<TbRfidDes> selectTbRfidDesList(TbRfidDes tbRfidDes)
    {
        return tbRfidDesMapper.selectTbRfidDesList(tbRfidDes);
    }

    /**
     * 新增非过磅车辆RFID
     * 
     * @param tbRfidDes 非过磅车辆RFID
     * @return 结果
     */
    @Override
    public int insertTbRfidDes(TbRfidDes tbRfidDes)
    {
        return tbRfidDesMapper.insertTbRfidDes(tbRfidDes);
    }

    /**
     * 修改非过磅车辆RFID
     * 
     * @param tbRfidDes 非过磅车辆RFID
     * @return 结果
     */
    @Override
    public int updateTbRfidDes(TbRfidDes tbRfidDes)
    {
        return tbRfidDesMapper.updateTbRfidDes(tbRfidDes);
    }

    /**
     * 批量删除非过磅车辆RFID
     * 
     * @param ids 需要删除的非过磅车辆RFID主键
     * @return 结果
     */
    @Override
    public int deleteTbRfidDesByIds(Long[] ids)
    {
        return tbRfidDesMapper.deleteTbRfidDesByIds(ids);
    }

    /**
     * 删除非过磅车辆RFID信息
     * 
     * @param id 非过磅车辆RFID主键
     * @return 结果
     */
    @Override
    public int deleteTbRfidDesById(Long id)
    {
        return tbRfidDesMapper.deleteTbRfidDesById(id);
    }
}
